//Eg6-11.cpp
#include <iostream>
using namespace std;
class Date{
private:
		int year,month,day;
public:
		Date(int yy=1900,int mm=1,int dd=1){year=yy; month=mm; day=dd;}
		void Show(){cout<<year<<"-"<<month<<"-"<<day<<endl;}
};
void main(){
		Date d(2000,10,11);
		d.Show();
		d=2006;
		d.Show();
}
